package c_01;

/**
 * @author fu-xiao-liu
 * @Date 2022/5/26 11:28
 */

@FunctionalInterface
interface Func {
    public boolean func(String str);
}

class Lambda {
    public void lambda(Func func) {
        return;
    }
}

public class Demo04_Dynamic {
    public static void main(String[] args) {
        Lambda lambda = new Lambda();

        Func func = s -> {
            return true;
        };

        lambda.lambda(func);

        lambda.lambda(s -> {
            return true;
        });
    }
}
